package com.sh.apiorder.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sh.apicommon.entity.Order;
import com.sh.apicommon.vo.OrderVO;
import com.sh.apiorder.model.dto.OrderAddRequest;
import com.sh.apiorder.model.dto.OrderQueryRequest;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author 舒云
* @description 针对表【t_order】的数据库操作Service
* @createDate 2024-10-06 16:12:03
*/
public interface TOrderService extends IService<Order> {

    // 添加订单
    OrderVO addOrder(OrderAddRequest orderAddRequest, HttpServletRequest request);

    // 分页查询
    Page<OrderVO> listPageOrder(OrderQueryRequest orderQueryRequest, HttpServletRequest request);

    List<Order> listTopBuyInterfaceInfo(int limit);
}
